package vip.meeet.autowire;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import vip.meeet.autowire.bean.AutowireBeanB;
import vip.meeet.autowire.bean.AutowireBeanC;
import vip.meeet.config.AutowireConfig;


public class AutowireStart {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AutowireConfig.class);
        AutowireBeanB bean = context.getBean(AutowireBeanB.class);
        System.out.println(bean.getAba());

        AutowireBeanC beanC = context.getBean(AutowireBeanC.class);
        System.out.println(beanC.getAba());
    }
}
